package statistics;
/**
* Average - holds parameters used to keep track of the running values
* used to compute average time.
*
* @author Team Switchboard Boxcar
*/

public class Average{

	/**
	*Keeps a running total of the accumulated average speed that each car/train
	*traveled at for each road/track in miles/hour.
	*/
	public double TotalSpeed;
	
	/**
	*Keeps a running total of the accumulated number of cars/trains that traveled
	*a road/track or through the waiting queue (for the cars).
	*/
	public int TotalVehicles;
	
	/**
	*Holds the distance of the road/track that is being traveled.  Holds -1 if
	*the structure is being used to find the average time each car waits in a
	*waiting queue.
	*/
	public double RouteDistance;
	
	/**
	 * The new Average Constructor builds an Average object with default values.
	 * RouteDistance will be changed to a positive value for roads and train tracks.
	 */
	public Average(){
		TotalSpeed = 0;
		TotalVehicles = 0;
		RouteDistance = -1;
	}
	
}